Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@Lakshmiec
Lakshmiec / llm-wiki.md
Created April 28, 2026 11:19 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ajazsiddiqui
ajazsiddiqui / WhastappBot.js
Last active April 28, 2026 11:17
Whatsapp Bot #WhatsApp
//copy the script and paste in google chrome console
(() => {
//
// GLOBAL VARS AND CONFIGS
//
var lastMessageOnChat = false;
var ignoreLastMsg = {};
var elementConfig = {
"chats": [0, 0, 5, 2, 0, 3, 0, 0, 0],
@ashwch
ashwch / git-worktrees-zero-to-hero.md
Last active April 28, 2026 11:17
Git Worktrees: From Zero to Hero - A comprehensive guide to using Git worktrees with submodules
@Antonzlo
Antonzlo / server-audit.sh
Last active April 28, 2026 11:16
AI snippet to find anything useful on a linux server
#!/usr/bin/env bash
# server-audit.sh — quick server inventory & non-default config detector
# Usage: bash server-audit.sh [--no-color] [--brief]
# Needs no dependencies beyond coreutils. Run as root for full output.
set -euo pipefail
# ── colour helpers ──────────────────────────────────────────────────────────
NO_COLOR=${1:-}
if [[ "$NO_COLOR" == "--no-color" ]]; then
# DSA Question Bank
## Arrays, Hashing, Prefix/Suffix
1. Find the second largest element in one pass without extra space.
2. Find the k largest distinct elements without fully sorting the array.
3. Find the two numbers that appear once when every other number appears twice.
4. Find the majority element that appears more than n / 2 times.
5. Find all elements that appear more than n / 3 times.
6. Count inversions in an array.
@southpolesteve
southpolesteve / AGENTS.md
Created April 28, 2026 03:02
Bare Bones Memory

Session Start

At the beginning of a session:

  1. Read this file.
  2. Read ~/memory/active-projects.md.
  3. Read the last few days of session logs in ~/memory/session-logs/
  4. Read the relevant project files for the current request.

While Working

@barbietunnie
barbietunnie / udemy-courses-download-using-cookies.md
Last active April 28, 2026 11:12
Downloading Udemy videos with youtube-dl

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}